From 999b6fd3b9d66ce6db0b7484f2fb99f25ba6ed52 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 13 Dec 2005 22:05:18 +0100 Subject: [PATCH] Most drivers have their own range of devices they claim and the tty index is identical to the device file index. For us, the tty index is always zero regardless of the device file index. Signed-off-by: Alex Williamson --- linux-2.6-xen-sparse/drivers/xen/console/console.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/console/console.c b/linux-2.6-xen-sparse/drivers/xen/console/console.c index 292d4beaad..3b106f8204 100644 --- a/linux-2.6-xen-sparse/drivers/xen/console/console.c +++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c @@ -168,7 +168,7 @@ static void kcons_write_dom0( static struct tty_driver *kcons_device(struct console *c, int *index) { - *index = c->index; + *index = 0; return xencons_driver; } @@ -213,6 +213,9 @@ static int __init xen_console_init(void) return __RETCODE; } + /* We only bind to one device index (-1 means all indexes). */ + kcons_info.index = xc_num; + wbuf = alloc_bootmem(wbuf_size); register_console(&kcons_info); -- 2.30.2